package com.jingdianjichi.auth.common.enums;

import lombok.Getter;

/*8
 * 删除状态枚举
 */
@Getter
public enum AuthUserStatusEnum {
    // 已删除
    ClOSE(1, "禁用"),
    OPEN(0, "启用");

    public int code;
    public String desc;
    AuthUserStatusEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    public static AuthUserStatusEnum getByCode(int code){
        for (AuthUserStatusEnum value : values()) {
            if (value.code == code) {
                return value;
            }
        }
        return null;
    }

}
